﻿window.onrefresh = function(){ alert('Refresh action has been disabled for security reasons.'); return false;}
function ChangeTab(tab, tabBtn)
{
	ChangeTabBGColor(tabBtn);
	var tbl = document.getElementById('tbPan');
	for (var x=0; x < tbl.rows.length; x++)
	{
		row = tbl.rows[x];
		if(row.id==tab)
		{
			row.style.visibility='visible';
			row.style.position='relative';
		}
		else
		{
			row.style.visibility='hidden';
			row.style.position='absolute';
		}
	}
}
function ChangeTabBGColor(tabBtn)
{
	var tbl = document.getElementById('tbTab');
	row = tbl.rows[0];
	for (var x=0; x < row.cells.length; x++)
	{
		cell = row.cells[x];
		cell.style.border='0px';
		cell.style.borderBottom='1px solid #FFF';
		cell.style.cursor='pointer';
	}
	tabBtn.style.border='1px solid #FFF';
	tabBtn.style.borderBottom='0px';	
	tabBtn.style.cursor='default';
}
function _ValidatorEnable(val, enable) {
    if(val == null || typeof(val) == "undefined")
        return;
    ValidatorEnable(val, enable);
}